from .equation import Equation


class SubEquation(Equation):
    def __init__(self):
        self.generateEquation("-")

    def calculate(self) -> int:
        return self.left - self.right

    def isEquals(self, equation: Equation) -> int:
        if self.op == equation.op:
            if self.left == equation.left and self.right == equation.right:
                return True
            else:
                return False
        else:
            return False
